#ifndef __PUZZLEGAMESCORENODE_H__
#define __PUZZLEGAMESCORENODE_H__

#include "cocos2d.h"  
#include "..\cocos2d\extensions\cocos-ext.h"
#include "cocos\ui\CocosGUI.h"
#include "PuzzleGuess.h" 
#include "uiExt\RadiusNode.h"


NS_GAME_BEGIN
	 

class PuzzleGameScoreNode : public RadiusNode
{
protected:  
	PuzzleGameScoreNode();
	~PuzzleGameScoreNode(); 
	
	//cocos2d::LayerColor *scoreBackcolorNode;
	cocos2d::LabelTTF *scoreTitleNode;
	cocos2d::LabelTTF *scoreValueNode;
	float scoreValue;
	void gameScoreSchedule(float fDelta);
public:   
	void setScoreTitle(const std::string& _scoreTitle);
	void setScoreValue(float _scoreValue);
	void beginGameScore();
	void endGameScore();
	
	virtual void setContentSize(const cocos2d::Size& contentSize) override;
	// Here's a difference. Method 'init' in cocos2d-x returns bool, instead of returning 'id' in cocos2d-iphone
	virtual bool init();    
	// implement the "static create()" method manually
	CREATE_FUNC(PuzzleGameScoreNode);    
}; 
 

NS_GAME_END

#endif	//__PUZZLEGAMESCORENODE_H__